longtable.sty

"longtable.sty", by David Carlisle, defines the "longtable" environment, for making multipage tables. "" will not work with "longtable". However, "colortab" contains other macros that will work, if you use "longtable.sty" in conjunction with Frank Mittelbach's "array.sty". These macros have been tested only briefly, with version 3.04 of "longtable.sty" and version 2.1b of "array.sty".

Before every column identifier in the environment's argument (e.g., "c", "l", "r", "p", "m" or "b"), put

[[]]"!" If none of the below applies; [[]]"!" If the column is preceded by one or more vertical lines; [[]]"!" If the column is followed by two vertical lines; [[]]"!" If the column is preceded by one or more vertical lines and followed by two vertical lines. [[]]"!<len1><len2>" If "colortab" should back up by <len1> before drawing the background, and should draw the background <len2> shorter than the width of the column.
Remember that you have to do this for every column, not just the columns that you want to color.

Then include

  \LColors <color> & <color> & ... & <color>\\
in the first row of the environment, and later on as well if you wish to change the colors. Here also you have to include every column, but you can leave an entry blank if you don't want any background color in that column.

The color comes out right, or at all, only after you have run the file enough times for "longtable.sty" to set the alignment correctly.

Here is an example. The output will appear in this documentation only if "longtable.sty" or "longtabl.sty" is installed on your system. c@LT@tablestestfalsed@llarbegintestfalse
\begin{longtable}{\vert!{\LCiii}l\vert\vert!{\LCi}c\vert!{\LCi}c\vert}\hline
\L...
...ray\\
Lulu & & Serrano\\ \hline
Guanabana & Larga &\\ \hline
\end{longtable}